package exemples;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;

public class View extends JPanel implements Observer{

	Canvas c;
	
	public View(){
		
		c = new Canvas();
		c.setBackground(Color.WHITE);
	}
	public void update(Observable o, Object ob){
		Color couleur = (Color)ob;
		c.setBackground(couleur);
		c.repaint();
	}
}
